package thread;


//使用lambda表达式
public class Demo1 {
    public static void main(String[] args) {
        Thread thread = new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println("要执行的任务");
            }
        });
        thread.start();
        System.out.println("main线程结束");
    }
}
